# 先安装markdown预览插件，以便正常预览README.md
install:
	code --install-extension shd101wyy.markdown-preview-enhanced


main: main.o functions.o config.o login.o
	gcc main.o functions.o config.o login.o -o main

main.o: main.c functions.c config.c login.c
	gcc -c main.c -o main.o
	gcc -c functions.c -o functions.o
	gcc -c config.c -o config.o
	gcc -c login.c -o login.o

clean:
	rm -f main.o functions.o config.o login.o
	clear
	./main

exit:
	^C

clear:
	clear